const config = require('../config/index');
const db = require('better-sqlite3')(config.db.path, config.db.options);
process.on('SIGINT', () => {
  console.log('关闭数据库连接');
  db.close();
})
module.exports = db;
